package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class Dvd here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Dvd
{
    // instance variables 
    private int id,releaseYear;
    private String titel, artist;
    private ArrayList<Sample> samples;

    /**
     * Constructor for objects of class Dvd
     */
    public Dvd(int id, String titel, String artist, int releaseYear)
    {
        // initialise instance variables
       this.id = id;
       this.titel = titel;
       this.artist = artist;
       this.releaseYear = releaseYear;
       samples = new ArrayList<Sample>();
    }

    
    public void setId(int id) {
        this.id = id;
    }
    
    public int getId() {
        return id;
    }
    
    public void setTitel(String titel) {
        this.titel = titel;
    }
    
    public String getTitel() {
        return titel;
    }
    
    public void setArtist(String artist) {
        this.artist = artist;
    }
    
    public String getArtist() {
        return artist;
    }
    
    public void setReleaseYear(int releaseYear) {
        this.releaseYear = releaseYear; 
    }
    
    public int getReleaseYear() {
        return releaseYear;
    } 
    
    public void printDvdInfo(){
        System.out.println("ID: " + id);
        System.out.println("Titel: " + titel);
        System.out.println("Artist: " + artist);
        System.out.println("Release Year: " + releaseYear);
    }  
    
    public void addSample(Sample sample){
        samples.add(sample);
    }
    
    public void removeSample(Sample sample){
        samples.remove(sample);
    }
    
    
    
    
}    
